for i in range(1, 20):
    print("sed -i 's/injection_rate = ",i/1000,"/injection_rate = ",(i+1)/1000,"/g' mesh88_lat",sep='',end='')
    print()
    print("cd ..")
    print("cd src")
    print("./booksim /home/peng/booksim2/test_space/mesh88_lat > ../test_space/current_out.txt")
    print("cd /home/peng/booksim2/test_space")
    print("sed -n '/Final Packet latency average = /'p current_out.txt >> result.txt")
    print()